package kr.pe.osdev.service;

import java.util.List;

import kr.pe.osdev.dao.CoOwnerDao;
import kr.pe.osdev.dao.UserDao;
import kr.pe.osdev.domain.CoOwner;
import kr.pe.osdev.domain.User;

import org.springframework.dao.DataAccessException;

public interface UserService {
    public void setUserDao(UserDao userDao);
    public void setCoOwnerDao(CoOwnerDao coOwnerDao);
	public User add(User user) throws DataAccessException;
	public boolean add(CoOwner coOwner) throws DataAccessException;
	public User find(User user) throws DataAccessException;
	public List<User> findList() throws DataAccessException;
	public List<User> findList(User user) throws DataAccessException;
	public int count() throws DataAccessException;
	public User modify(User user) throws DataAccessException;
	public User remove(User user) throws DataAccessException;
	public User authenticate(User user) throws DataAccessException;
	public int login(User user) throws DataAccessException;
}